package com.srit.recipes.entity;

import lombok.*;

import javax.persistence.*;

@Entity
@Table(indexes = {
        @Index(columnList = "CP_ID")
})
@Getter
@Setter
@ToString
@RequiredArgsConstructor
public class IngredientInfo extends RecipesId {
    @Basic
    @Column(name = "CP_ID")

    private String cpId;

    @Basic
    @Column(name = "scName")
    private String scName;

    /**
     * 百人分量
     */
    @Basic
    @Column(name = "SC_BRFL")
    private long portion;
    @Basic
    @Column(name = "unit")
    private String unit;

    /**
     * 1 主料 2辅料 3调料
     */
    @Basic
    @Column(name = "type")
    private int type;

}
